1c6960
@@ -1398,6 +1398,7 @@
public boolean connect(Properties props) throws IOException {
       beeLine.setCompletions();
       return true;
     } catch (SQLException sqle) {
+      beeLine.getDatabaseConnections().remove();
       return beeLine.error(sqle);
     } catch (IOException ioe) {
       return beeLine.error(ioe);
